package com.itheima.category.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.itheima.goods.pojo.Category;
import entity.PageResult;

import java.util.List;

/**
 * @author wang
 * @description
 * @date 2021/7/30 9:14
 */
public interface CategoryService extends IService<Category> {
    List<Category> findAll();

    boolean add(Category category);

    PageResult findPage4Get(Integer page, Integer size);

    PageResult findPage4Post(Integer page, Integer size, Category category);

    Category findById(Integer id);

    boolean deleteById(Integer id);

    boolean updateCategory(Category category, Integer id);
}
